package com.dimenlink.web.controller;

import com.dimenlink.component.RedisComponent;
import com.dimenlink.entity.dto.SysSettingDto;
import com.dimenlink.entity.vo.ResponseVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/sysSeting")
@Validated
@Slf4j
public class SysSettingController extends ABaseController {
    @Resource
    private RedisComponent redisComponent;
    @RequestMapping("/getSetting")
    public ResponseVO getSetting() {
        return getSuccessResponseVO(redisComponent.getSysSettingDto());
    }
}
